package com.ruoyi.system.excelImport.pangxie.pxExcel;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @other pzz
 * @data 2024/8/3
 * @apiNote
 */
@Data
@ToString(includeFieldNames = false, onlyExplicitlyIncluded = true)
public class SMZHMExcelPush {

    @Excel(name = "账号")
    private String accountNumber;
    @Excel(name = "密码")
    private String password;
    @Excel(name = "价格")
    private BigDecimal price;

    @Excel(name = "备注")
    private String remark;

    @Excel(name = "商家商品ID")
    private String goodsId;
    @Excel(name = "商家商品编码")
    private String goodsIdCode;
    /**
     * 自己注册
     * 螃蟹平台购买
     * 其他平台购买
     */
    @Excel(name = "商品来源")
    private String goodsResource = "螃蟹平台购买";
    /**
     * 是
     * 否
     */
    @Excel(name = "是否接受议价")
    private String isYJ = "是";

    @Excel(name = "营地ID")
    private String yingdiId;

    /**
     * 安卓QQ
     * 安卓微信
     * 苹果QQ
     * 苹果微信
     */
    @Excel(name = "按渠道")
    private String qudao;
    /**
     * 【按实名】：（不可二次实名 可二次实名  支持人脸包赔）
     */
    @Excel(name = "按实名")
    private String shiming;


    @Excel(name = "按防沉迷")
    private String fangchenmi = "无防沉迷";

    /**
     * 传奇
     * 战神
     * 大师
     * 钻石
     * 白金
     * 黄金
     * 白银
     * 青铜
     */

    @Excel(name = "段位")
    private String duanwei = "无段位";

    /**
     * 传说武器
     */
    @Excel(name = "传说武器")
    private String chuanshuowuqi ;


    public void setChuanshuowuqi(String chuanshuowuqi) {
        if (StringUtils.isNotEmpty(chuanshuowuqi)){
            this.chuanshuowuqi = getChuanShuoWuQi(Arrays.asList(chuanshuowuqi.split(",")));
        }else{
            this.chuanshuowuqi = chuanshuowuqi;
        }
    }

    public String getChuanShuoWuQi(List<String> chuanshuoList){
        List<String> chuanshuo = Arrays.asList(
                "Argus-均等裁决",
                "SVD-皇家舰队",
                "Type25-幽冥战马",
                "Razorback-直上云霄",
                "Pharo-深海迷航",
                "PDW57-生化毒焰",
                "AK117-火龙咆哮",
                "AKS74U-时光沙漏",
                "ICR-智能枪灵",
                "KN44-霓虹炫光",
                "Razorback-北极星光",
                "SMG5-炽热熔点",
                "Type25-磁引擎天",
                "AGR-圣骑之刃",
                "AN94-暗黑之涌",
                "FHJ18毒刺-赤金战矛",
                "SKS-光之神域",
                "AGR-撕裂之刃",
                "SMG5-会心一击",
                "唐刀-白月魁",
                "蝴蝶刀-雷光焰影",
                "PPSh41-龙晶",
                "Man0War-狱海焰火",
                "DRH-金沙护卫",
                "ZRG20mm-炼狱之门",
                "Kilo141-鎏金腐败",
                "Swordfish-海神之戟",
                "DLQ33-炫彩冬日",
                "AK47-午夜侠士",
                "Kilo141-斯巴达之怒",
                "Krig6-启迪门扉",
                "ICR-苍穹沙暴",
                "Swordfish-异星突触",
                "HG40-皇家准则",
                "冲锋手枪-相位破碎",
                "DLQ33-低音重炮",
                "DRH-刀轮战车",
                "PKM-共生体",
                "RPD-大黄蜂",
                "PP19-星乐章",
                "M4-天罗地网",
                "EM2-吞噬者",
                "CX-9-山吹烬",
                "PDW57-坦克军团",
                "LAG53-星隙脉冲",
                "M13-紫炎舞",
                "GKS-流浪英雄",
                "XPR50-白狼牙",
                "Outlaw-艳阳时刻",
                "KRM262-电玩高手",
                "KRM262-巨擎涡轮",
                "AK117-白月魁",
                "MSMC-空间站",
                "DRH-虎豹利爪",
                "KSP45-粒子光能",
                "L-CAR9-电引碎星",
                "SMG5-幻变迷狂",
                "M13-骑士信条",
                "G37-银河星舰",
                "AN94-暗影封禁",
                "NA45-狼人传说",
                "KN44-九尾妖狐",
                "蛇刃-银蛇舞",
                "LW3-Tundra-雪林歌谣",
                "CR56-灰寂之源",
                "QXR-蛇骨噬焰",
                "PDW57-水晶舞会",
                "ASVAL-利刃湮灭",
                "M4LMG-爆裂侵蚀",
                "HBR3-雷霆万钧",
                "Fennec-华珑",
                "DLQ33-先进火力",
                "龙泉剑-七星龙渊",
                "J358-猎杀矩阵",
                "长枪-涯角",
                "JAK12-聚能封锁",
                "SA80-狂暴冲锋",
                "HVK30-末世霸主",
                "AK47-醒狮舞春",
                "SMG5-北境之狼",
                "DLQ33-奇点悖论",
                "Holger26-恐惧深渊",
                "PP19-炽火咒痕",
                "PPSh41-火凤翱翔",
                "CBR4-凡此过往",
                "TEC-9-黑色默片",
                "Kar98K-猩红绽放",
                "AMR-龙魄",
                "HVK30-崭新纪元",
                "AKBP-月球漫步",
                "ZRG20mm-咖啡风潮",
                "MAC10-跃动之星",
                "G37-金库浩劫",
                "AKS74U-嘻哈天王",
                "Type-矢量穿透",
                "HVK30-街机霸王",
                "SKS-玛雅文明",
                "藤棍-沙海蛇影",
                "MAC10-时序因果",
                "CR56-野性之力",
                "HBR3-黄沙引渡",
                "MX9-魔能蓝蜥",
                "Groza-流光宝瓶",
                "CBR4-柔情鳄兽",
                "RPD-怪奇马戏团",
                "RPD-星云天秤",
                "Koshka-命运之手",
                "拳套-魔羊利角",
                "SwitchbladeX9-银河双鱼",
                "Holger26-北境恒星",
                "HVK30-灼华丹心",
                "M16-翎雀泣",
                "AMR-青瓷鸣金",
                "Swordfish-糖化魔猫",
                "Argus-天宫敕令",
                "DRH-硬核玩家",
                "钗-火神乐",
                "HG40-灵魂羁绊",
                "Locus-绯红猫爪",
                "SKS-粒子震击",
                "Oden-混沌棘刺",
                "Echo-致命剧毒",
                "Chopper-地狱猎犬",
                "QXR-冰雪奇迹",
                "Holger26-冥界提灯",
                "SVD-赫拉之击",
                "Maddox-晶流梦魇",
                "DRMK2-炽热狂徒",
                "Striker45-机鲛骇浪",
                "Chopper-游戏规则",
                "EM2-菠萝榨汁机",
                "AK117-极速传奇",
                "Thumper-惊魂火炮",
                "钉枪-序列崩解",
                "BruenMk9-电流暴走",
                "AK47-狂怒",
                "Outlaw-沙海秘藏",
                "D13Sector-蒸汽朋克",
                "FFAR1-法老秘宝",
                "Man0War-空中堡垒",
                "Arctic-华丽圆舞曲",
                "Type25-凛冽寒霜",
                "Groza-侘寂黑花",
                "Locus-动能无限",
                "M21EBR-烈火疾驰",
                "AK117-炫彩冬日",
                "PPSh41-姜饼工坊",
                "ICR-诡奇闹剧",
                "AKBP-塞壬律曲",
                "KN44-最终一舞",
                "ASVAL-霜狼哀歌",
                "Arctic50-青眸白虎",
                "KN44-寒鸦",
                "十字弓-动能电流",
                "PKM-麋鹿",
                "HDR-炫彩泼墨",
                "Dobvra-渊影浮光",
                "BY15-彪悍灵魂",
                "OTs9-深渊业火",
                "AK47-炎舞慕雪",
                "AK47-月华星辉",
                "PP19-月魂轮回",
                "LAPA-35号传奇",
                "Cordite-零度吞噬",
                "Krig6-不羁艺术",
                "AN94-异界银狼",
                "AKS74U-自我潮流",
                "Shorty-最后机会",
                "Fennec-终焉之光",
                "SMG5-月光追痕",
                "DRMK2-华丽独奏",
                "Arctic-魅惑灵狐",
                "CR56-梦呓渡鸦",
                "Man0War-灵魂低语",
                "SA80-电光骇客",
                "Renetti-钢铁幻影",
                "SPR208-机要特工",
                "Locus-冰下诡计",
                "PP19-蔑誓者",
                "XPR50-精灵咏叹",
                "G37-次元律动",
                "Grau5.56-龙魂怒焰",
                "Hades-永夜黑骑",
                "ICR-紫藤曼华",
                "MX9-无心一击",
                "M4-虚空坍缩",
                "M4LMG-火蜥蜴",
                "RPD-海民图腾",
                "AKBP-急冻寒流",
                "BY15-爆裂泡泡机",
                "R9-0-冬日精酿",
                "BY15-茶百道西瓜啵动",
                "Fennec-幻阵螺旋",
                "SKS-轮回湮灭",
                "Locus-海神之戟",
                "M4-重金属乐",
                "AK117-逐乐之章",
                "KSP45-粉电擎天",
                "DRH-恶犬咆哮",
                "CR56-红魔浪潮",
                "AKS74U-凛冬盛典",
                "PP19-凛冬庆典",
                "SPR208-斗转星移",
                "Hades-禁忌之术",
                "FR556-精密仪器",
                "AK47-炎舞慕雪·典藏",
                "ICR-KO！",
                "M16-T-3",
                "LAPA-桑巴国王",
                "CBR4-潘帕斯雄鹰",
                "Locus-恶魔气息",
                "Dingo-白雾断魂",
                "AKS74U-电流磁场",
                "50GS-路阻且长",
                "Maddox-雪山飞驰",
                "GKS-彩虹独角兽",
                "M1887-闪耀明星",
                "M4-愚人小丑",
                "GKS-诡秘卡牌",
                "FR556-谜影之镜",
                "AK117-诸神黄昏",
                "HBR3-蜜蜂工厂",
                "Grau5.56-青蛇曲",
                "ASVAL-余音",
                "Kar98K-雷鸣光束",
                "MX9-无心一击·典藏",
                "M13-花晨月夕",
                "MAC10-金龙鳞影",
                "RAALMG-骨缚咒鸦",
                "Dobvra-凛冬"
        );
        List<String> collect = chuanshuoList.stream().filter(s -> chuanshuo.contains(s)).collect(Collectors.toList());
        return StringUtils.join(collect,",");
    }
    static {
        ExcelUtil.gameToClassMap.put("使命召唤手游", SMZHMExcelPush.class);
    }
}
